<?php echo $html->script('jquery-1.4.2.min.js') ?>
<?php echo $html->script('jquery-ui-1.8.2.custom.min.js') ?>
<?php echo $html->script('jquery-ui-timepicker-addon-0.5.js') ?>
<?php echo $html->script('dibai.js') ?>
<?php echo $html->css('datePicker.css')?>
<?php echo $html->css('flickr/jquery-ui-1.8.2.custom.css')?>

<div class="left">
<?php echo $this->Form->create('Event',array('url'=>"/group/$ggid/new_event"));?>
	<fieldset>
 		<div class="titles"><?php __("在{$group['Group']['name']}小组创建新活动"); ?></div>
 		<table id="settings">
 		    <tr><td class="name">活动标题：</td><td><?php echo $this->Form->text('name',array('class'=>'full-width')); ?></td></tr>
 		    <tr><td class="name">活动描述：</td><td><?php echo $this->Form->textArea('description'); ?></td></tr>
<?php echo $form->hidden('group_id',array('value'=>$gid)) ?>
 		    <tr><td class="name">开始时间：</td><td><?php echo $this->Form->text('begins',array('label'=>false,'class'=>'date-pick')); ?> 
 		        <select name="datetime" id="time" >
 		       <?php $times=array('01','02','03','04','05','06','07','08','09','10','11','12',
 		       '13','14','15','16','17','18','19','20','21','22','23','24');?> 
 		            <?php foreach ($times as $time): ?>
     		            <option value="<?php echo $time ?>"><?php echo $time ?></option>
 		            <?php endforeach ?>
 		        </select>点 <?php echo $form->text('second') ?>分
 		    </td></tr>
 		    <tr><td class="name">结束时间：</td><td><?php echo $this->Form->text('ends',array('label'=>false,'class'=>'date-pick')); ?></td></tr>
 		    <tr><td></td><td><?php echo $this->Form->end(__('Submit', true));?>
</td></tr>
 		</table>

	</fieldset>
</div>
<div class="right">
	<h3><?php __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('查看所有活动', true), array('action' => 'index'));?></li>
		<li><?php echo $linker->groupLink($group['Group'],"回到{$group['Group']['name']}小组") ?> </li>
	</ul>
	<div id="memebers">
	    
	</div>
</div>